Skip to content

Commit aabb670

Browse files
authored
Prepare to publish pytask-parallel on PyPI. (#13)
1 parent 2e585c5 commit aabb670

File tree

18 files changed

+2625
-21
lines changed

18 files changed

+2625
-21
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-parallel
44-
license: none
46+
license: MIT
47+
license_file: LICENSE
4548
summary: Parallelize the execution of tasks.
4649
dev_url: https://github.com/pytask-dev/pytask-parallel

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/pytask_parallel/_version.py export-subst
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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ repos:
7171
- repo: https://github.com/codespell-project/codespell
7272
rev: v2.0.0
7373
hooks:
74-
- id: codespell
74+
- id: codespell
75+
args: [-L unparseable]
76+
- repo: https://github.com/mgedmin/check-manifest
77+
rev: "0.46"
78+
hooks:
79+
- id: check-manifest
7580
- repo: meta
7681
hooks:
7782
- id: check-hooks-apply

CHANGES.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ Changes
33

44
This is a record of all past pytask-parallel releases and what went into them in reverse
55
chronological order. Releases follow `semantic versioning <https://semver.org/>`_ and
6-
all releases are available on `Anaconda.org
7-
<https://anaconda.org/pytask/pytask-parallel>`_.
6+
all releases are available on `PyPI <https://pypi.org/project/pytask-parallel>`_ and
7+
`Anaconda.org <https://anaconda.org/pytask/pytask-parallel>`_.
88

99

10-
0.0.6 - 2021-xx-xx
10+
0.0.6 - 2021-02-27
1111
------------------
1212

1313
- :gh:`12` replaces all occurrences of ``n_processes`` with ``n_workers``.
14+
- :gh:`13` adds a license, versioneer, and allows publishing on PyPI.
1415

1516

1617
0.0.5 - 2020-12-28

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 versioneer.py
2+
include src/pytask_parallel/_version.py
3+
include LICENSE
4+
5+
exclude *.rst
6+
exclude *.yaml
7+
exclude *.yml
8+
exclude tox.ini
9+
10+
prune .conda
11+
prune tests

README.rst

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
1+
.. image:: https://img.shields.io/pypi/v/pytask-parallel?color=blue
2+
:alt: PyPI
3+
:target: https://pypi.org/project/pytask-parallel
4+
5+
.. image:: https://img.shields.io/pypi/pyversions/pytask-parallel
6+
:alt: PyPI - Python Version
7+
:target: https://pypi.org/project/pytask-parallel
8+
19
.. image:: https://anaconda.org/pytask/pytask-parallel/badges/version.svg
210
:target: https://anaconda.org/pytask/pytask-parallel
311

412
.. image:: https://anaconda.org/pytask/pytask-parallel/badges/platforms.svg
513
:target: https://anaconda.org/pytask/pytask-parallel
614

15+
.. image:: https://img.shields.io/pypi/l/pytask-parallel
16+
:alt: PyPI - License
17+
718
.. image:: https://github.com/pytask-dev/pytask-parallel/workflows/Continuous%20Integration%20Workflow/badge.svg?branch=main
819
:target: https://github.com/pytask-dev/pytask/actions?query=branch%3Amain
920

1021
.. image:: https://codecov.io/gh/pytask-dev/pytask-parallel/branch/main/graph/badge.svg
1122
:target: https://codecov.io/gh/pytask-dev/pytask-parallel
1223

24+
.. image:: https://results.pre-commit.ci/badge/github/pytask-dev/pytask-parallel/main.svg
25+
:target: https://results.pre-commit.ci/latest/github/pytask-dev/pytask-parallel/main
26+
:alt: pre-commit.ci status
27+
1328
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
1429
:target: https://github.com/psf/black
1530

@@ -25,10 +40,15 @@ Parallelize the execution of tasks with ``pytask-parallel`` which is a plugin fo
2540
Installation
2641
------------
2742

28-
Install the plugin via ``conda`` with
43+
pytask-parallel is available on `PyPI <https://pypi.org/project/pytask-parallel>`_ and
44+
`Anaconda.org <https://anaconda.org/pytask/pytask-parallel>`_. Install it with
2945

3046
.. code-block:: console
3147
48+
$ pip install pytask-parallel
49+
50+
# or
51+
3252
$ conda config --add channels conda-forge --add channels pytask
3353
$ conda install pytask-parallel
3454

0 commit comments

Comments
 (0)