Skip to content

Commit 85163b4

Browse files
authored
Packaging (#238)
1 parent 42ce88c commit 85163b4

File tree

169 files changed

+968
-1003
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+968
-1003
lines changed

.codecov.yml

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

.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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ source:
1212
build:
1313
noarch: python
1414
number: 0
15+
script: {{ PYTHON }} setup.py install --single-version-externally-managed --record record.txt
1516
entry_points:
1617
- estimagic = estimagic.cli:cli
1718

@@ -43,7 +44,7 @@ test:
4344
- statsmodels
4445
source_files:
4546
- tox.ini
46-
- estimagic/tests
47+
- tests
4748
commands:
4849
- pytest -m "not slow"
4950
- estimagic --version
@@ -52,6 +53,6 @@ test:
5253

5354
about:
5455
home: https://github.com/OpenSourceEconomics/estimagic
55-
license: BSD
56+
license: MIT
5657
license_file: LICENSE
5758
summary: Tools for the estimation of (structural) econometric models.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
- name: Build a binary wheel and a source tarball
24+
run: >-
25+
python -m
26+
build
27+
--sdist
28+
--wheel
29+
--outdir dist/
30+
- name: Publish distribution 📦 to PyPI
31+
if: startsWith(github.ref, 'refs/tags')
32+
uses: pypa/gh-action-pypi-publish@master
33+
with:
34+
password: ${{ secrets.PYPI_API_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,6 @@ venv.bak/
124124

125125

126126
.pytask.sqlite3
127+
128+
129+
src/estimagic/_version.py

LICENSE

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,18 @@
1-
BSD 3-Clause License
1+
Copyright 2019-2021 Janos Gabler
22

3-
Copyright (c) 2019, Janos Gabler
4-
All rights reserved.
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:
59

6-
Redistribution and use in source and binary forms, with or without
7-
modification, are permitted provided that the following conditions are met:
10+
The above copyright notice and this permission notice shall be included in all copies or
11+
substantial portions of the Software.
812

9-
* Redistributions of source code must retain the above copyright notice, this
10-
list of conditions and the following disclaimer.
11-
12-
* Redistributions in binary form must reproduce the above copyright notice,
13-
this list of conditions and the following disclaimer in the documentation
14-
and/or other materials provided with the distribution.
15-
16-
* Neither the name of the copyright holder nor the names of its
17-
contributors may be used to endorse or promote products derived from
18-
this software without specific prior written permission.
19-
20-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,25 @@
66
# Test what is included in the package by running ``python setup.py sdist`` and inspect
77
# the tarball.
88

9-
include CHANGES.rst
109
include CITATION
1110
include LICENSE
12-
include README.rst
13-
include tox.ini
14-
include *.sh
15-
include *.yaml
16-
include *.yml
11+
include CHANGES.rst
1712

18-
exclude pytask.ini
13+
recursive-include src *.css
14+
recursive-include src *.csv
15+
recursive-include src *.db
16+
recursive-include src *.html
17+
recursive-include src *.py
1918

20-
graft docs
21-
graft estimagic
19+
exclude *.sh
20+
exclude *.yaml
21+
exclude *.yml
22+
exclude *.pickle
23+
exclude pytask.ini
24+
exclude tox.ini
2225

23-
prune docs/_build
24-
prune docs/build
25-
prune docs/getting_started/__tutorial__
26+
prune docs
27+
prune tests
2628
prune .conda
2729

2830
global-exclude __pycache__

codecov.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ coverage:
66
precision: 2
77
round: down
88
range: "50...100"
9+
status:
10+
patch:
11+
default:
12+
target: 80%
13+
project:
14+
default:
15+
target: 87%
916

1017
ignore:
1118
- ".tox/**/*"

docs/environment.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@ channels:
33
dependencies:
44
- python=3.8
55
- ipython
6+
- pip
7+
- setuptools_scm
8+
- toml
9+
610
- pip:
711
- sphinx
812
- pydata-sphinx-theme>=0.3.0
913
- nbsphinx
1014
- sphinxcontrib-bibtex
1115
- sphinx-panels
16+
- ../

0 commit comments

Comments
 (0)