Skip to content

Commit

Permalink
revert to a1e7ae9
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Palazzo committed Apr 8, 2024
1 parent 6420d09 commit 4cb22bb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 40 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/static_code_analysis.yml

This file was deleted.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ namespaces = false
'*' = [
'* __pycache__',
'*.py[co]',
'static_code_analysis.txt',
]

[tool.bumpversion]
Expand Down
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def _get_minimum_versions(dependencies, python_version):
for dependency in dependencies:
if '@' in dependency:
name, url = dependency.split(' @ ')
min_versions[name] = f'{url}#egg={name}'
min_versions[name] = f'{name} @ {url}'
continue

req = Requirement(dependency)
Expand Down
8 changes: 3 additions & 5 deletions tests/test_tasks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"""Tests for the ``tasks.py`` file."""

from tasks import _get_minimum_versions


Expand All @@ -16,7 +14,7 @@ def test_get_minimum_versions():
"pandas>=1.2.0,<2;python_version<'3.10'",
"pandas>=1.3.0,<2;python_version>='3.10'",
'humanfriendly>=8.2,<11',
'pandas @ git+https://github.com/pandas-dev/pandas.git@master',
'pandas @ git+https://github.com/pandas-dev/pandas.git@master#egg=pandas'
]

# Run
Expand All @@ -26,12 +24,12 @@ def test_get_minimum_versions():
# Assert
expected_versions_39 = [
'numpy==1.20.0',
'git+https://github.com/pandas-dev/pandas.git@master#egg=pandas',
'pandas @ git+https://github.com/pandas-dev/pandas.git@master#egg=pandas',
'humanfriendly==8.2',
]
expected_versions_310 = [
'numpy==1.23.3',
'git+https://github.com/pandas-dev/pandas.git@master#egg=pandas',
'pandas @ git+https://github.com/pandas-dev/pandas.git@master#egg=pandas',
'humanfriendly==8.2',
]

Expand Down

0 comments on commit 4cb22bb

Please sign in to comment.