Skip to content

Commit 7608881

Browse files
committed
Switch to using git_helper to manage many files
1 parent 3f5938c commit 7608881

File tree

10 files changed

+26
-8
lines changed

10 files changed

+26
-8
lines changed

.bumpversion.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ tag = True
55

66
[bumpversion:file:__pkginfo__.py]
77

8+
[bumpversion:file:git_helper.yml]
9+
810
[bumpversion:file:domdf_python_tools/__init__.py]
911

.ci/travis_build_conda.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
# This file is managed by `git_helper`. Don't edit it directly
23

34
set -e -x
45

.dependabot/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is managed by `git_helper`. Don't edit it directly
2+
13
version: 1
24
update_configs:
35
- package_manager: "python"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is managed by `git_helper`. Don't edit it directly
2+
13
# Byte-compiled / optimized / DLL files
24
__pycache__/
35
*.py[cod]

.readthedocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is managed by `git_helper`. Don't edit it directly
2+
13
# .readthedocs.yml
24
# Read the Docs configuration file
35
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1+
# This file is managed by `git_helper`. Don't edit it directly
2+
13
language: python
24
dist: xenial
35
python:
46
- '3.6'
57
- '3.7'
68
- '3.8'
79
- 'pypy3'
8-
10+
911
install:
1012
- sudo apt-get update
11-
- pip install coveralls tox tox-travis rst2txt []
13+
14+
- pip install rst2txt
15+
- pip install coveralls tox tox-travis
1216
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
1317
- bash miniconda.sh -b -p $HOME/miniconda
18+
1419
script:
1520
- tox
1621
after_success:

__pkginfo__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# This file is managed by `git_helper`. Don't edit it directly
12
# Copyright (C) 2019-2020 Dominic Davis-Foster <[email protected]>
23
#
34
# This program is free software: you can redistribute it and/or modify
@@ -34,9 +35,9 @@
3435
author = "Dominic Davis-Foster"
3536
author_email = "[email protected]"
3637
github_username = "domdfcoding"
37-
web = github_url = f"https://github.com/{github_username}/{modname}"
38+
web = github_url = f"https://github.com/domdfcoding/domdf_python_tools"
3839
project_urls = {
39-
"Documentation": f"https://{modname}.readthedocs.io", # TODO: Make this link match the package version
40+
"Documentation": f"https://domdf_python_tools.readthedocs.io", # TODO: Make this link match the package version
4041
"Issue Tracker": f"{github_url}/issues",
4142
"Source Code": github_url,
4243
}

doc-source/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33

4-
#### No need to change anything in this file ####
4+
# This file is managed by `git_helper`. Don't edit it directly
55

66
import os
77
import re
@@ -12,7 +12,7 @@
1212

1313
from sphinx.locale import _
1414

15-
from domdf_python_tools import __copyright__
15+
from __pkginfo__ import VERSION
1616

1717

1818
github_url = f"https://github.com/domdfcoding/domdf_python_tools"
@@ -26,8 +26,8 @@
2626
author = "Dominic Davis-Foster"
2727
project = "domdf_python_tools"
2828
slug = re.sub(r'\W+', '-', project.lower())
29-
version = release = "0.3.1"
30-
copyright = __copyright__
29+
release = version = VERSION
30+
copyright = "Copyright 2019-2020 Dominic Davis-Foster"
3131
language = 'en'
3232

3333
extensions = [

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python
2+
# This file is managed by `git_helper`. Don't edit it directly
23
"""Setup script"""
34

45
from __pkginfo__ import *

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is managed by `git_helper`. Don't edit it directly
2+
13
# This file must be in the dir as setup.py
24
[tox]
35
envlist = py36, py37, py38, pypy3,

0 commit comments

Comments
 (0)