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

Update the build process #8

Merged
merged 2 commits into from
Dec 15, 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
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ Changelog
*Release date: TBD*

* Clean up how package versions are handled
* Install pre-commit with isort, black, and flake8 (#7)
* Install pre-commit with isort, black, and flake8
[#7](https://github.com/jdillard/sphinx-gitstamp/pull/7)
* Update the build process
[#8](https://github.com/jdillard/sphinx-gitstamp/pull/8)

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 @@ -12,7 +12,7 @@ package release.

4. Create latest distribution locally:

python setup.py sdist
python -m build

5. Upload to the test pypi.org repository:

Expand Down
31 changes: 31 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,33 @@
[build-system]
requires = [
"setuptools",
]
build-backend = "setuptools.build_meta"

[project]
name = "sphinx-gitstamp"
description = "git timestamp generator for Sphinx"
authors = [
{name = "Jared Dillard", email = "jared.dillard@gmail.com"},
]
maintainers = [
{name = "Jared Dillard", email = "jared.dillard@gmail.com"},
]
classifiers=[
"License :: OSI Approved :: BSD License",
"Topic :: Documentation :: Sphinx",
"Programming Language :: Python :: 3",
"Framework :: Sphinx :: Extension",
]
license = {text = "MIT"}
readme = "README.rst"
dynamic = [
"version",
]

[project.urls]
download = "https://pypi.org/project/sphinx-gitstamp/"
source = "https://github.com/jdillard/sphinx-gitstamp"

[tool.isort]
profile = "black"
8 changes: 7 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
[metadata]
description-file = README.rst
version = attr: sphinx_gitstamp.__version__

[options]
packages = find_namespace:
install_requires =
sphinx>=1.2
gitpython
30 changes: 3 additions & 27 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,4 @@
import os
import setuptools

from setuptools import setup

import sphinx_gitstamp

long_description = open(
"README.rst" if os.path.exists("README.rst") else "README.md"
).read()

setup(
name="sphinx-gitstamp",
description="git timestamp generator for Sphinx",
long_description=long_description,
classifiers=[
"License :: OSI Approved :: BSD License",
"Topic :: Documentation :: Sphinx",
"Programming Language :: Python :: 3",
"Framework :: Sphinx :: Extension",
],
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",
packages=["sphinx_gitstamp"],
)
if __name__ == "__main__":
setuptools.setup()