Skip to content

Commit

Permalink
Merge pull request #5 from CitrineInformatics/admin/deploy-pypi
Browse files Browse the repository at this point in the history
Deploys the package to PyPI after a version bump. Fixes bug related to missing data files in the MANIFEST after refactoring to `dftinputgen`.
  • Loading branch information
hegdevinayi authored Dec 8, 2020
2 parents e041123 + 7174eea commit ea1c7de
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 11 deletions.
19 changes: 14 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
language: python

python:
- '2.7'
- '3.8'

install:
- pip install -r requirements.txt
- pip install -r test_requirements.txt
- pip install -e .

script:
- pytest --cov=src/ --cov-report term-missing --cov-report term:skip-covered --cov-config=tox.ini --cov-fail-under=100 -svv .
- flake8 src
- pytest --cov=src/ --cov-report term-missing --cov-report term:skip-covered --cov-config=tox.ini
--cov-fail-under=100 -svv .
- flake8 src
deploy:
- provider: pypi
user: CitrineInformatics
password: "$PYPI_PASSWORD"
distributions: sdist bdist_wheel
skip_existing: true
on:
tags: true
env:
global:
secure: M9HI5bpY5t4Rd17rjdrSo6QF4jV2JMi3hOgMzMGgly4jP1NoafOBSpJHy4TisBeE8eyrkJPJurMnF0Fw7kACtpCMT6h8tLE4r6Ss97542MJnFLV33hILdcwJZjAYfaQ0q5lrWmtNr420y5kvD1EjL3jQnYYVJC2wjAb4b5C8Ji5i/43n5Vuk3aO2BG8IzNXF0buqtAWIwyclOpr/QjkSWxf+ptj4Fv64Cy84aVTFMOGL523DRVkZgCl5vdq6gSpFTk9S/a2G16LM6GPU3ohKRzIGRzRv8HsGL4oyi2c+NjzysIdOq7yx/8crM4fADAl+xG3bh8biYJY6PVfxrR4ttNdL6UFxg0xUwPVpmngL+YjUS6DOi7cVs9VoaqsPq5mrrcZ5HvL+RaJt43o0okxBqvmZW/SRJs0fAdDLu1UKIxzH9MTpdQmuUhCyyh6muePnnzvNkSzXnZRSO2z/DUmLsRiA3qMJkY/CSIWvxqj9+tVvAT9jRjb+loWBrra3FR5+sMikmoT/Qd27xCYSrwTMBy7jgw4mOh6xNK6FmT1nS/JDpH0KrZDXwjsB2uHSw9G1EnrBF7fhXCTx7SodD9ypwKrB0aIUrRj2iUcsAKGN4mVz92KvF/OhhuLmH2+hiivSM98k2R36bZfhEuAqFTSN5DM/UoqLXckdr63vahxHlEA=
8 changes: 4 additions & 4 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include src/dftinpgen/*.txt
include src/dftinpgen/data/*.json
include src/dftinpgen/qe/settings/*.json
include src/dftinpgen/qe/settings/calculation_presets/*.json
include src/dftinputgen/*.txt
include src/dftinputgen/data/*.json
include src/dftinputgen/qe/settings/*.json
include src/dftinputgen/qe/settings/calculation_presets/*.json
4 changes: 3 additions & 1 deletion docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
author = "Vinay Hegde <[email protected]>"

# The full version, including alpha/beta/rc tags
release = "0.1.0"
version_file = os.path.join("..", "..", "src", "dftinputgen", "VERSION.txt")
with open(version_file, "r") as fr:
release = fr.read().strip()


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/dftinputgen/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.1.1

0 comments on commit ea1c7de

Please sign in to comment.