release: tweak packaging scripts for uploading to PyPI
Clean up the PyPI dist packages, remove unnecessary files, and streamline the release process: * Avoid adding extra unnecessary files to the repo; setup.py is code and can copy the necessary files into place. * Make sure README.md is included so we don't get an UNKNOWN Description field. * Add a long_description_content_type to avoid parsing errors on the README.md file and rejecting the upload. * Define the license and platform fields so they don't show up as UNKNOWN either. * Remove unnecessary pyproject.toml. This makes sense for most python projects, but since I already have a Makefile with installation rules (because I'm trying to be more compatible with git.git just in case we ever get merged into it), the pyproject.toml file is somewhat duplicative. Sure, the Makefile won't specify the exact versions needed but...meh. * Split the release target of the Makefile into github_release and pypi_release substeps, to allow them to be run semi-independently. Make the pypi_release run a few more steps for me. Signed-off-by: Elijah Newren <newren@gmail.com>pull/43/head
parent
6f4fc07d53
commit
525ecc8f8e
@ -1 +0,0 @@
|
||||
../git-filter-repo
|
@ -1 +0,0 @@
|
||||
../git_filter_repo.py
|
@ -1,9 +0,0 @@
|
||||
[build-system]
|
||||
requires = [
|
||||
# The minimum setuptools version is specific to the PEP 517 backend,
|
||||
# and may be stricter than the version required in `setup.py`
|
||||
"setuptools>=40.6.0",
|
||||
"setuptools_scm",
|
||||
"wheel",
|
||||
]
|
||||
build-backend = "setuptools.build_meta"
|
@ -1,2 +1,5 @@
|
||||
from setuptools import setup
|
||||
import os
|
||||
for f in ['git-filter-repo', 'git_filter_repo.py', 'README.md']:
|
||||
os.symlink("../"+f, f)
|
||||
setup(use_scm_version=dict(root="..", relative_to=__file__))
|
||||
|
Loading…
Reference in New Issue