Skip to content

Commit d09d27f

Browse files
committed
bump version to 0.0.10a, update CONTRIBUTING, fix in pyproject.toml
1 parent 3fcb268 commit d09d27f

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ If there are autodoc issues/errors in remote builds of the docs, we need to add
8181

8282
### Test release to `test.pypi.org` (manual)
8383

84-
1. Bump the release version in `causalpy/version.py`.
85-
2. Build locally and upload to test.pypi.org. _Note that this requires username and password for test.pypi.org_. In the root directory type the following:
84+
1. Bump the release version in `causalpy/version.py` and `pyproject.toml`.
85+
2. Build locally and upload to test.pypi.org. Full instructions here https://packaging.python.org/en/latest/tutorials/packaging-projects/. _Note that this requires username and password for test.pypi.org_. In the root directory type the following:
8686
```bash
8787
rm -rf dist
88-
python setup.py sdist
89-
twine upload --repository testpypi dist/*
88+
python3 -m build
89+
python3 -m twine upload --repository testpypi dist/*
9090
```
9191
3. At this point the updated build is available on test.pypi.org. We can test that this is working as expected by installing (into a test environment) from test.pypi.org with
9292

@@ -100,14 +100,14 @@ python3 -m pip install --index-url https://test.pypi.org/simple/ --extra-index-u
100100

101101
### Actual release to `pypi.org` (manual)
102102

103-
1. Bump the release version (if not done in the previous step) in `causalpy/version.py`. This is automatically read by `setup.py` and `docs/config.py`.
103+
1. Bump the release version in `causalpy/version.py` and `pyproject.toml` (if not done in the previous step). This is automatically read by `setup.py` and `docs/config.py`.
104104
2. Push this to a branch, open a pull request, and merge into main.
105105
3. Manually draft a new release [here](https://github.com/pymc-labs/CausalPy/releases), making sure to hit 'generate release notes'.
106106
4. Build locally and upload to pypi.org. In the root directory:
107107
```bash
108108
rm -rf dist
109-
python setup.py sdist
110-
twine upload dist/*
109+
python3 -m build
110+
python3 -m twine upload dist/*
111111
```
112112
5. Readthedocs:
113113
- Docs should be built remotely every time there is a pull request

causalpy/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.9"
1+
__version__ = "0.0.10a"

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
[build-system]
22
# Minimum requirements for the build system to execute.
33
build-backend = "setuptools.build_meta"
4-
requires = ["setuptools", "wheel"] # PEP 508 specifications.
4+
requires = ["setuptools>=61.0"]
55

66
# This is configuration specific to the `setuptools` build backend.
77
# If you are using a different build backend, you will need to change this.
88
[tool.setuptools]
99
# define all packages here
10-
py-modules = ['causalpy', 'causalpy.data']
10+
packages = ['causalpy', 'causalpy.data']
1111

1212
[project]
1313
name = "CausalPy"
14-
version = "0.0.9"
14+
version = "0.0.10"
1515
description = "Causal inference for quasi-experiments in Python"
1616
readme = "README.md"
1717
license = {file = "LICENSE"}

0 commit comments

Comments
 (0)