File tree 2 files changed +13
-10
lines changed
2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 27
27
mkdir -p test-sdist
28
28
cd test-sdist
29
29
python -m venv venv-sdist
30
- venv-sdist/bin/python -m pip install ../dist/CausalPy *.tar.gz
30
+ venv-sdist/bin/python -m pip install ../dist/causalpy *.tar.gz
31
31
echo "Checking import and version number (on release)"
32
32
venv-sdist/bin/python -c "import causalpy; assert causalpy.__version__ == '${{ github.ref_name }}' if '${{ github.ref_type }}' == 'tag' else causalpy.__version__; print(causalpy.__version__)"
33
33
cd ..
36
36
mkdir -p test-bdist
37
37
cd test-bdist
38
38
python -m venv venv-bdist
39
- venv-bdist/bin/python -m pip install ../dist/CausalPy *.whl
39
+ venv-bdist/bin/python -m pip install ../dist/causalpy *.whl
40
40
echo "Checking import and version number (on release)"
41
41
venv-bdist/bin/python -c "import causalpy; assert causalpy.__version__ == '${{ github.ref_name }}' if '${{ github.ref_type }}' == 'tag' else causalpy.__version__; print(causalpy.__version__)"
42
42
cd ..
Original file line number Diff line number Diff line change 1
1
[build-system ]
2
2
# Minimum requirements for the build system to execute.
3
- build-backend = " setuptools.build_meta "
4
- requires = [" setuptools>=61.0 " ]
3
+ build-backend = " flit_core.buildapi "
4
+ requires = [" flit_core>=3.4,<4 " ]
5
5
6
- # This is configuration specific to the `setuptools ` build backend.
6
+ # This is configuration specific to the `flit ` build backend.
7
7
# If you are using a different build backend, you will need to change this.
8
- [tool .setuptools . packages . find ]
9
- exclude = [" causalpy. test*" , " docs*" ]
8
+ [tool .flit . sdist ]
9
+ exclude = [" causalpy/ test*" , " docs/* " , " dist/ *" ]
10
10
11
- [tool .setuptools .package-data ]
12
- "causalpy.data" = [" *.csv" ]
11
+ [tool .flit .external-data ]
12
+ directory = " causalpy/data"
13
+
14
+ [tool .flit .module ]
15
+ name =" causalpy"
13
16
14
17
[project ]
15
18
name = " CausalPy"
16
- version = " 0.1.0 "
19
+ dynamic = [ " version " ]
17
20
description = " Causal inference for quasi-experiments in Python"
18
21
readme = " README.md"
19
22
license = { file = " LICENSE" }
You can’t perform that action at this time.
0 commit comments