Skip to content

Commit e976ff4

Browse files
authored
Prepare pytask-environment to be published on PyPI. (#3)
1 parent 41eeb2c commit e976ff4

22 files changed

+2637
-26
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:
@@ -38,6 +40,7 @@ test:
3840

3941
about:
4042
home: https://github.com/pytask-dev/pytask-environment
41-
license: none
43+
license: MIT
44+
license_file: LICENSE
4245
summary: Ensure checks on the current Python environment.
4346
dev_url: https://github.com/pytask-dev/pytask-environment/

.gitattributes

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

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
22

33
name: Bug Report
4-
about: Create a bug report to help us improve pytask-latex
4+
about: Create a bug report to help us improve pytask-environment
55
title: "BUG:"
66
labels: "bug"
77

88
---
99

1010
- [ ] I have checked that this issue has not already been reported.
1111

12-
- [ ] I have confirmed this bug exists on the latest version of pytask-latex.
12+
- [ ] I have confirmed this bug exists on the latest version of pytask-environment.
1313

1414
- [ ] (optional) I have confirmed this bug exists on the `main` branch of
15-
pytask-latex.
15+
pytask-environment.
1616

1717
---
1818

.github/ISSUE_TEMPLATE/documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ labels: "documentation"
1212
Provide the location of the documentation, e.g. an URL of the documentation.
1313

1414
**Note**: You can check the latest versions of the docs on `main`
15-
[here](https://pytask-latex.readthedocs.io/en/latest).
15+
[here](https://pytask-environment.readthedocs.io/en/latest).
1616

1717
#### Documentation problem
1818

.github/ISSUE_TEMPLATE/enhancement.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22

33
name: Enhancement
4-
about: Suggest an idea for pytask-latex
4+
about: Suggest an idea for pytask-environment
55
title: "ENH:"
66
labels: "enhancement"
77

88
---
99

1010
#### Is your feature request related to a problem?
1111

12-
Provide a description of what the problem is, e.g. "I wish I could use pytask-latex
12+
Provide a description of what the problem is, e.g. "I wish I could use pytask-environment
1313
to do [...]".
1414

1515
#### Describe the solution you'd like

.github/ISSUE_TEMPLATE/question.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22

33
name: Submit Question
4-
about: Ask a general question about pytask-latex
4+
about: Ask a general question about pytask-environment
55
title: "QST:"
66
labels: "question"
77

88
---
99

10-
#### Question about pytask-latex
10+
#### Question about pytask-environment
1111

1212
**Note**: If you'd still like to submit a question, please read [this guide](
1313
https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to

.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: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,12 @@ repos:
7171
- repo: https://github.com/codespell-project/codespell
7272
rev: v2.0.0
7373
hooks:
74-
- id: codespell
75-
args: [-L=als]
74+
- id: codespell
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

0 commit comments

Comments
 (0)