File tree 4 files changed +45
-0
lines changed 4 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,9 @@ release: update_docs
110
110
cat asset_id | xargs -I ASSET_ID curl -s -H " Authorization: token $( GITHUB_COM_TOKEN) " -H " Content-Type: application/octet-stream" --data-binary @$(FILEBASE ) .tar.xz https://uploads.github.com/repos/newren/git-filter-repo/releases/ASSET_ID/assets? name=$(FILEBASE ) .tar.xz
111
111
# Remove temporary file(s)
112
112
rm asset_id
113
+ # Upload to PyPI, automatically picking up the new tag
114
+ cd release && python3 setup.py sdist bdist_wheel
115
+ twine upload release/dist/*
113
116
# Notify of completion
114
117
@echo
115
118
@echo === filter-repo $(TAGNAME ) created and uploaded to GitHub ===
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ requires = [
3
+ # The minimum setuptools version is specific to the PEP 517 backend,
4
+ # and may be stricter than the version required in `setup.py`
5
+ " setuptools>=40.6.0" ,
6
+ " setuptools_scm" ,
7
+ " wheel" ,
8
+ ]
9
+ build-backend = " setuptools.build_meta"
Original file line number Diff line number Diff line change
1
+ [metadata]
2
+ name = git-filter-repo
3
+ url = https://github.com/newren/git-filter-repo
4
+ project_urls =
5
+ Source = https://github.com/newren/git-filter-repo
6
+ Issues = https://github.com/newren/git-filter-repo/issues/
7
+ description = Quickly rewrite git repository history
8
+ long_description = file: README.md
9
+ classifiers =
10
+ Development Status :: 4 - Beta
11
+ Operating System :: OS Independent
12
+ Programming Language :: Python
13
+ License :: OSI Approved :: MIT License
14
+ Programming Language :: Python :: 3.5
15
+ Programming Language :: Python :: 3.6
16
+ Programming Language :: Python :: 3.7
17
+ Programming Language :: Python :: 3.8
18
+ Programming Language :: Python :: 3
19
+ Programming Language :: Python :: Implementation :: CPython
20
+ Programming Language :: Python :: Implementation :: PyPy
21
+
22
+ [options]
23
+ scripts = ../git-filter-repo
24
+ package_dir =
25
+ = ..
26
+ py_modules = git_filter_repo
27
+ python_requires = >= 3.5
28
+ setup_requires = setuptools_scm
29
+
30
+ [bdist_wheel]
31
+ universal = 1
Original file line number Diff line number Diff line change
1
+ from setuptools import setup
2
+ setup (use_scm_version = dict (root = ".." , relative_to = __file__ ))
You can’t perform that action at this time.
0 commit comments