Skip to content

Commit

Permalink
chore: add toml to setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Jan 8, 2024
1 parent 821e339 commit ce2dc0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions providers/context/hooks/append.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def exec(self, context: Context) -> Optional[list]:
)

target.append(self.item)
self.skip_output = True
else:
self.src.append(self.item)
return self.src
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def get_version(rel_path):
'xdg==5.1.1',
]

# Add tomli only for Python 3.10
EXTRAS_REQUIRE = {':python_version == "3.10"': ['tomli>=1.0.0']}

setup(
name='tackle',
version=get_version(os.path.join('tackle', '__init__.py')),
Expand All @@ -56,6 +59,7 @@ def get_version(rel_path):
include_package_data=True,
python_requires='>=3.10',
install_requires=INSTALL_REQUIREMENTS,
extras_require=EXTRAS_REQUIRE,
license='BSD',
zip_safe=False,
classifiers=[
Expand Down

0 comments on commit ce2dc0e

Please sign in to comment.