Skip to content

Commit

Permalink
Merge branch 'jm/revamp-python-packaging'
Browse files Browse the repository at this point in the history
Signed-off-by: Elijah Newren <[email protected]>
  • Loading branch information
newren committed Jul 7, 2024
2 parents c190e34 + 5beb361 commit 571f1c1
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 60 deletions.
13 changes: 6 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,14 @@ github_release: update_docs

pypi_release: # Has an implicit dependency on github_release because...
# Upload to PyPI, automatically picking tag created by github_release
cd release && python3 -m venv venv
cd release && venv/bin/pip3 install --upgrade setuptools pip
cd release && venv/bin/pip3 install twine wheel
cd release && venv/bin/python3 setup.py sdist bdist_wheel
python3 -m venv venv
venv/bin/pip install --upgrade pip
venv/bin/pip install build twine
venv/bin/pyproject-build
# Note: hope you remember password for pypi, but username is 'newren'
cd release && venv/bin/twine upload dist/*
venv/bin/twine upload dist/*
# Remove temporary file(s)
cd release && rm -f README.md git-filter-repo git_filter_repo.py
cd release && rm -rf .eggs/ build/ venv/ git_filter_repo.egg-info/
rm -rf dist/ venv/ git_filter_repo.egg-info/

# NOTE TO FUTURE SELF: If you accidentally push a bad release, you can remove
# all but the git-filter-repo-$VERSION.tar.xz asset with
Expand Down
45 changes: 45 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[project]
name = "git-filter-repo"
description = "Quickly rewrite git repository history"
authors = [
{name = "Elijah Newren", email = "[email protected]"}
]
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Operating System :: OS Independent",
"Programming Language :: Python",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
license.text = "MIT"
requires-python = ">= 3.5"
dynamic = ["version"]

[project.urls]
Homepage = "https://github.com/newren/git-filter-repo"
Issues = "https://github.com/newren/git-filter-repo/issues/"
Source = "https://github.com/newren/git-filter-repo"

[project.scripts]
git-filter-repo = "git_filter_repo:main"

[build-system]
requires = ["setuptools>=61", "setuptools_scm>=8.0", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
py-modules = ["git_filter_repo"]

[tool.setuptools_scm]
# This section intentionally left blank
32 changes: 0 additions & 32 deletions release/setup.cfg

This file was deleted.

21 changes: 0 additions & 21 deletions release/setup.py

This file was deleted.

0 comments on commit 571f1c1

Please sign in to comment.