Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up how package versions are handled #6

Merged
merged 1 commit into from
Dec 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========

0.4.0
-----

*Release date: TBD*

* Clean up how package versions are handled

0.3.3
-----

Expand Down
2 changes: 1 addition & 1 deletion MAINTENANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
These are the steps, to be run by the maintainer, for making a new Python
package release.

1. Rev versions in **sphinx_gitstamp/version.py** and **setup.py**.
1. Rev `__version__` in **sphinx_gitstamp/__init__.py**.
2. Update **CHANGELOG.md**
3. Create a tag and push to GitHub:

Expand Down
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from setuptools import setup
import os
import sphinx_gitstamp

long_description = open('README.rst' if os.path.exists('README.rst') else 'README.md').read()
exec(compile(
open('sphinx_gitstamp/version.py').read(), 'sphinx_gitstamp/version.py', 'exec'))

setup(
name='sphinx-gitstamp',
Expand All @@ -15,12 +14,11 @@
'Programming Language :: Python :: 3',
'Framework :: Sphinx :: Extension',
],
version=__version__,
version=sphinx_gitstamp.__version__,
author='Jared Dillard',
author_email='jared.dillard@gmail.com',
install_requires=['six', 'sphinx >= 1.2', 'gitpython'],
url="https://github.com/jdillard/sphinx-gitstamp",
license='MIT',
download_url="https://github.com/jdillard/sphinx-gitstamp/archive/v0.3.3.tar.gz",
packages=['sphinx_gitstamp'],
)
5 changes: 4 additions & 1 deletion sphinx_gitstamp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
import datetime
from sphinx import errors

__version__ = '0.4.0'

# Gets the datestamp of the latest commit on the given file
# Converts the datestamp into something more readable
# Skips files whose datestamp we can't parse.
Expand Down Expand Up @@ -100,5 +102,6 @@ def setup(app):

return {
'parallel_read_safe': True,
'parallel_write_safe': True
'parallel_write_safe': True,
'version': __version__,
}
1 change: 0 additions & 1 deletion sphinx_gitstamp/version.py

This file was deleted.