ports/textproc/py-citeproc-py/files/patch-setup.py
Yuri Victorovich 7a9d42b44e textproc/py-citeproc-py: Update 0.5.1 -> 0.6.0
Reported by:	portscout
2021-06-02 01:49:43 -07:00

27 lines
1.1 KiB
Python

--- setup.py.orig 2021-05-27 17:28:02 UTC
+++ setup.py
@@ -30,7 +30,7 @@ os.chdir(BASE_PATH)
# inspired by http://dcreager.net/2010/02/10/setuptools-git-version-numbers/
try:
print('Attempting to get version number from git...')
- git = Popen(['git', 'describe', '--always', '--dirty'],
+ git = Popen(['/usr/bin/false', 'describe', '--always', '--dirty'],
stdout=PIPE, stderr=sys.stderr)
if git.wait() != 0:
raise OSError
@@ -85,14 +85,13 @@ setup(
name='citeproc-py',
version=__version__,
cmdclass = dict(build_py=custom_build_py, develop=custom_develop),
- packages=find_packages(),
package_data={PACKAGE: ['data/locales/*.xml',
'data/locales/locales.json',
'data/schema/*.rng',
'data/styles/*.csl']},
python_requires='>=3.6',
scripts=['bin/csl_unsorted'],
- setup_requires=['rnc2rng>=2.6.1,!=2.6.2'],
+ setup_requires=['rnc2rng'],
install_requires=['lxml'],
provides=[PACKAGE],
#test_suite='nose.collector',