1
0
mirror of https://github.com/jordansissel/fpm synced 2025-11-11 18:38:50 +01:00
fpm/spec/fixtures/python/setup.py
Jordan Sissel f0e5b8abc0 Use python to parse python requires syntax and evaluate markers.
Not supported yet:
* Custom environment for marker evaluation.
* "extras" markers

Restore function to `--python-obey-requirements-txt`. This flag will
only work on python inputs that are provided as a directory, not a
wheel/tar.gz/etc.

Tests pass including the obey requirements.txt ones.

* Fix bug 'else File.directory?` -> `elsif File.directory?...` lol oops.
* Use Dir.entries instead of Dir.glob to allow python package extra
  syntax, with names like `django[bcrypt]` (Note, extras in requirements
  aren't evaluated yet)
2025-09-30 15:25:44 -07:00

18 lines
428 B
Python

from setuptools import setup
setup(name="Example",
version="1.0",
description="sample description",
author="sample author",
author_email="sample email",
url="sample url",
packages=[],
package_dir={},
install_requires=[
"Dependency1", "dependency2",
'rtxt-dep3; python_version == "2.0"',
'rtxt-dep4; python_version > "2.0"',
],
)