Skip to content

Commit 11e9afe

Browse files
committed
Updated files with git_helper and trialling new .travis.yml layout
1 parent 43e3f72 commit 11e9afe

File tree

10 files changed

+52
-29
lines changed

10 files changed

+52
-29
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ tag = True
1010
[bumpversion:file:domdf_python_tools/__init__.py]
1111

1212
[bumpversion:file:README.rst]
13+

.ci/travis_deploy_conda.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ if [ $TRAVIS_PYTHON_VERSION == 3.6 ]; then
2424
conda build conda -c domdfcoding -c conda-forge --output-folder conda/dist --skip-existing
2525

2626
for f in conda/dist/noarch/domdf_python_tools-*.tar.bz2; do
27+
[ -e "$f" ] || continue
2728
echo "$f"
2829
conda install $f || exit 1
2930
if [ -z "$TRAVIS_TAG" ]; then

.travis.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,27 @@ after_success:
2323
- chmod +x .ci/travis_build_conda.sh
2424
- .ci/travis_build_conda.sh || travis_terminate 1;
2525

26-
deploy:
27-
provider: pypi
28-
user: "DomDF"
29-
password:
30-
secure: GQVX7JKDfUWcHQzjmZ8yadF4eIM/AUaXu/Zl8U2hwhB6NavbzUayvMXalT+pfgZ6NaWFMPZOETlxv5d+hf98Io/5HIV4i1KB98ze90KXpUU2Icz7IdxWDWGhc36Vkhb7hU0HUfXLu8WxcxQCJB3t7uIB9SO36dh/cMayW5YvBy3HhluaTvgLax4nOJYjN/FJCgs9kTCBYrjJzheS0pgj37bXZCrB06H0bsxgnbaAiL8FiG6tgJLABDLfqPhtJgVRhtdYeuqGv31/OV0vkj1zG6bExp9ENQ4/5L7FijLRznW+DnsRJt6BdTBtxNxK+v1ZccTdVJzTzhoUH/TbXdI+qtBeatTYz880du7TujKoxfFxGZ9+bSaYURaClMHn7/Ndj7ioj5f51jLf8+BCEk3cWEfUL7yeKF6RBWLww6cFKQ9yDNOiXgrsndz6Oh535LV28rKXS1qeGBppMAv09RmR/YfHu+XMp5yWa+vDwjmrQDH7qEkA3wYYMfMRnwi9+LrOHtS7IqFkgbAXZPmh3C0X1UEqD4cuARcyD9FRU2PAXM1tBprxEFi1L/sv4O8KRP+I3jXXsBHTmzbWWVqXiySGOlX6R9vOma35WS3mkllS/Oz7IyhUtONrwpaLHnuBLKMgi+RnsoEYgLx6KgSXVSQ0JUZq8cP2yewC8nx626w675w=
31-
on:
32-
tags: true
33-
python: "3.6"
34-
distributions: "sdist bdist_wheel"
35-
skip_existing: true
26+
27+
stages:
28+
- test
29+
- deploy
30+
31+
jobs:
32+
include:
33+
- stage: deploy
34+
provider: pypi
35+
python: "3.6"
36+
on:
37+
tags: true
38+
repo: domdfcoding/domdf_python_tools
39+
deploy:
40+
script: skip
41+
user: "DomDF"
42+
password:
43+
secure: GQVX7JKDfUWcHQzjmZ8yadF4eIM/AUaXu/Zl8U2hwhB6NavbzUayvMXalT+pfgZ6NaWFMPZOETlxv5d+hf98Io/5HIV4i1KB98ze90KXpUU2Icz7IdxWDWGhc36Vkhb7hU0HUfXLu8WxcxQCJB3t7uIB9SO36dh/cMayW5YvBy3HhluaTvgLax4nOJYjN/FJCgs9kTCBYrjJzheS0pgj37bXZCrB06H0bsxgnbaAiL8FiG6tgJLABDLfqPhtJgVRhtdYeuqGv31/OV0vkj1zG6bExp9ENQ4/5L7FijLRznW+DnsRJt6BdTBtxNxK+v1ZccTdVJzTzhoUH/TbXdI+qtBeatTYz880du7TujKoxfFxGZ9+bSaYURaClMHn7/Ndj7ioj5f51jLf8+BCEk3cWEfUL7yeKF6RBWLww6cFKQ9yDNOiXgrsndz6Oh535LV28rKXS1qeGBppMAv09RmR/YfHu+XMp5yWa+vDwjmrQDH7qEkA3wYYMfMRnwi9+LrOHtS7IqFkgbAXZPmh3C0X1UEqD4cuARcyD9FRU2PAXM1tBprxEFi1L/sv4O8KRP+I3jXXsBHTmzbWWVqXiySGOlX6R9vOma35WS3mkllS/Oz7IyhUtONrwpaLHnuBLKMgi+RnsoEYgLx6KgSXVSQ0JUZq8cP2yewC8nx626w675w=
44+
distributions: "sdist bdist_wheel"
45+
skip_existing: true
46+
3647
after_deploy:
3748
- chmod +x .ci/travis_deploy_conda.sh
3849
- .ci/travis_deploy_conda.sh || travis_terminate 1;

__pkginfo__.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"__copyright__",
2323
"__version__",
2424
"modname",
25+
"pypi_name",
2526
"py_modules",
2627
"entry_points",
2728
"__license__",
@@ -38,6 +39,7 @@
3839
"extras_require",
3940
"classifiers",
4041
"keywords",
42+
"import_name",
4143
]
4244

4345
__copyright__ = """
@@ -47,14 +49,18 @@
4749
__version__ = "0.3.1"
4850

4951
modname = "domdf_python_tools"
52+
pypi_name = "domdf_python_tools"
53+
import_name = "domdf_python_tools"
5054
py_modules = []
51-
entry_points = None
55+
entry_points = {
56+
"console_scripts": []
57+
}
5258

5359
__license__ = "GNU Lesser General Public License v3 or later (LGPLv3+)"
5460

5561
short_desc = "Helpful functions for Python"
5662

57-
author = "Dominic Davis-Foster"
63+
__author__ = author = "Dominic Davis-Foster"
5864
author_email = "[email protected]"
5965
github_username = "domdfcoding"
6066
web = github_url = f"https://github.com/domdfcoding/domdf_python_tools"
@@ -80,16 +86,15 @@
8086
classifiers = [
8187
'Development Status :: 4 - Beta',
8288
'Intended Audience :: Developers',
83-
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
8489
'Operating System :: OS Independent',
8590
'Programming Language :: Python',
91+
'Programming Language :: Python :: 3 :: Only',
92+
'Topic :: Software Development :: Libraries :: Python Modules',
8693
'Programming Language :: Python :: 3.6',
94+
'Programming Language :: Python :: Implementation :: CPython',
8795
'Programming Language :: Python :: 3.7',
8896
'Programming Language :: Python :: 3.8',
89-
'Programming Language :: Python :: 3 :: Only',
90-
'Programming Language :: Python :: Implementation :: CPython',
9197
'Programming Language :: Python :: Implementation :: PyPy',
92-
'Topic :: Software Development :: Libraries :: Python Modules',
9398
'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)',
9499

95100
]

doc-source/conf.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from __pkginfo__ import __version__
1616

1717

18+
1819
github_url = f"https://github.com/domdfcoding/domdf_python_tools"
1920

2021
rst_prolog = f""".. |pkgname| replace:: domdf_python_tools
@@ -52,12 +53,21 @@
5253
'rtd': ('https://docs.readthedocs.io/en/latest/', None),
5354
'sphinx': ('http://www.sphinx-doc.org/en/stable/', None),
5455
'python': ('https://docs.python.org/3/', None),
56+
"NumPy": ('https://docs.scipy.org/doc/numpy/', None),
57+
"SciPy": ('https://docs.scipy.org/doc/scipy/reference', None),
58+
"matplotlib": ('https://matplotlib.org', None),
59+
"h5py": ('https://docs.h5py.org/en/latest/', None),
60+
"Sphinx": ('https://www.sphinx-doc.org/en/stable/', None),
61+
"Django": ('https://docs.djangoproject.com/en/dev/', 'https://docs.djangoproject.com/en/dev/_objects/'),
62+
"sarge": ('https://sarge.readthedocs.io/en/latest/', None),
63+
"attrs": ('https://www.attrs.org/en/stable/', None),
5564

5665
}
5766

5867
html_theme = 'sphinx_rtd_theme'
5968
html_theme_options = {
6069
'logo_only': False, # True will show just the logo
70+
6171
}
6272
html_theme_path = ["../.."]
6373
# html_logo = "logo/pyms.png"

doc-source/requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
sphinxcontrib-httpdomain
1+
pytz >=2019.1
22
sphinx
3-
pytz >= 2019.1
3+
sphinx_rtd_theme
4+
sphinxcontrib-httpdomain

git_helper.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,9 @@ classifiers:
6363
# - "Development Status :: 6 - Mature"
6464
# - "Development Status :: 7 - Inactive"
6565
- 'Intended Audience :: Developers'
66-
- "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)"
6766
- 'Operating System :: OS Independent'
6867
- 'Programming Language :: Python'
69-
- 'Programming Language :: Python :: 3.6'
70-
- 'Programming Language :: Python :: 3.7'
71-
- 'Programming Language :: Python :: 3.8'
7268
- "Programming Language :: Python :: 3 :: Only"
73-
- "Programming Language :: Python :: Implementation :: CPython"
74-
- "Programming Language :: Python :: Implementation :: PyPy"
7569
- 'Topic :: Software Development :: Libraries :: Python Modules'
7670

7771
extras_require:

make_conda_recipe.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
description_block = conda_description.replace('"', '\\"')
3232

3333
with open(recipe_dir / "meta.yaml", "w") as fp:
34-
fp.write(f"""{{% set name = "{modname}" %}}
34+
fp.write(f"""{{% set name = "{pypi_name}" %}}
3535
{{% set version = "{__version__}" %}}
3636
3737
package:
@@ -43,7 +43,7 @@
4343
4444
build:
4545
# entry_points:
46-
# - {modname} = {modname}:main
46+
# - {import_name} = {import_name}:main
4747
# skip_compile_pyc:
4848
# - "*/templates/*.py" # These should not (and cannot) be compiled
4949
noarch: python
@@ -64,7 +64,7 @@
6464
6565
test:
6666
imports:
67-
- {modname}
67+
- {import_name}
6868
6969
about:
7070
home: "{web}"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
install_requires=install_requires,
1818
license=__license__,
1919
long_description=long_description,
20-
name=modname,
20+
name=pypi_name,
2121
packages=find_packages(exclude=("tests", "doc-source")),
2222
project_urls=project_urls,
2323
py_modules=py_modules,

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is managed by `git_helper`. Don't edit it directly
22

3-
# This file must be in the dir as setup.py
3+
# This file must be in the same dir as setup.py
44
[tox]
55
envlist = py36, py37, py38, pypy3,
66
skip_missing_interpreters = True

0 commit comments

Comments
 (0)