Skip to content

Commit 2982048

Browse files
authored
Prepare pytask-latex to be published on PyPI. (#18)
1 parent 69f239f commit 2982048

19 files changed

+2614
-27
lines changed

.conda/bld.bat

Lines changed: 0 additions & 2 deletions
This file was deleted.

.conda/build.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

.conda/meta.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ source:
1212
build:
1313
noarch: python
1414
number: 0
15+
script: {{ PYTHON }} setup.py install --single-version-externally-managed --record record.txt
1516

1617
requirements:
1718
host:
1819
- python
20+
- pip
1921
- setuptools
2022

2123
run:
@@ -41,6 +43,7 @@ test:
4143

4244
about:
4345
home: https://github.com/pytask-dev/pytask-latex
44-
license: none
46+
license: MIT
47+
license_file: LICENSE
4548
summary: Compile LaTeX documents.
4649
dev_url: https://github.com/pytask-dev/pytask-latex/

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/pytask_latex/_version.py export-subst

.github/workflows/continuous-integration-workflow.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,6 @@ jobs:
4444
shell: bash -l {0}
4545
run: bash <(curl -s https://codecov.io/bash) -F unit -c
4646

47-
# - name: Run integration tests.
48-
# shell: bash -l {0}
49-
# run: tox -e pytest -- -m integration --cov=./ --cov-report=xml -n auto
50-
51-
# - name: Upload coverage reports of integration tests.
52-
# if: runner.os == 'Linux' && matrix.python-version == '3.8'
53-
# shell: bash -l {0}
54-
# run: bash <(curl -s https://codecov.io/bash) -F integration -c
55-
5647
- name: Run end-to-end tests.
5748
shell: bash -l {0}
5849
run: tox -e pytest -- -m end_to_end --cov=./ --cov-report=xml -n auto

.github/workflows/publish-to-pypi.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: PyPI
2+
3+
on: push
4+
5+
jobs:
6+
build-n-publish:
7+
name: Build and publish Python 🐍 distributions 📦 to PyPI
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@master
11+
12+
- name: Set up Python 3.8
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: 3.8
16+
17+
- name: Install pypa/build
18+
run: >-
19+
python -m
20+
pip install
21+
build
22+
--user
23+
24+
- name: Build a binary wheel and a source tarball
25+
run: >-
26+
python -m
27+
build
28+
--sdist
29+
--wheel
30+
--outdir dist/
31+
32+
- name: Publish distribution 📦 to PyPI
33+
if: startsWith(github.ref, 'refs/tags')
34+
uses: pypa/gh-action-pypi-publish@master
35+
with:
36+
password: ${{ secrets.PYPI_API_TOKEN }}

.pre-commit-config.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ repos:
7272
rev: v2.0.0
7373
hooks:
7474
- id: codespell
75-
args: [-L=als]
75+
args: [-L als, -L unparseable]
76+
- repo: https://github.com/mgedmin/check-manifest
77+
rev: "0.46"
78+
hooks:
79+
- id: check-manifest
7680
- repo: meta
7781
hooks:
7882
- id: check-hooks-apply

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ all releases are available on `Anaconda.org
77
<https://anaconda.org/pytask/pytask-latex>`_.
88

99

10+
0.0.11 - 2021-02-25
11+
-------------------
12+
13+
- :gh:`18` prepares pytask-latex to be published on PyPI, adds versioneer and more.
14+
15+
1016
0.0.10 - 2021-01-16
1117
-------------------
1218

LICENSE

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Copyright 2020-2021 Tobias Raabe
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this
4+
software and associated documentation files (the "Software"), to deal in the Software
5+
without restriction, including without limitation the rights to use, copy, modify,
6+
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7+
permit persons to whom the Software is furnished to do so, subject to the following
8+
conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all copies or
11+
substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
14+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
15+
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
16+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
17+
OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
18+
OTHER DEALINGS IN THE SOFTWARE.

MANIFEST.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
include LICENSE
2+
include versioneer.py
3+
include src/pytask_latex/_version.py
4+
5+
exclude *.rst
6+
exclude *.yml
7+
exclude *.yaml
8+
exclude tox.ini
9+
10+
prune .conda
11+
prune tests

0 commit comments

Comments
 (0)