Skip to content

Commit

Permalink
Final cleanup to remove unneeded dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mborsetti authored and root committed Oct 18, 2020
1 parent b539efb commit 2d4b89c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install flake8 pytest nose
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Thanks to:
* Robin Wilson
* Pietro Zambelli
* Holger Zebner
* Mike Borsetti

for their contributions of code, bugfixes, documentation, and general encouragement.

Expand Down
3 changes: 1 addition & 2 deletions pysolar/solar.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@
from . import solartime as stime
from . import radiation
from .tzinfo_check import check_aware_dt
import pytz


def solar_test():
latitude_deg = 42.364908
longitude_deg = -71.112828
d = datetime.datetime.now(tz=pytz.UTC)
d = datetime.datetime.now(tz=datetime.timezone.utc)
thirty_minutes = datetime.timedelta(hours = 0.5)
for _ in range(48):
timestamp = d.ctime()
Expand Down
4 changes: 1 addition & 3 deletions python3-pysolar.spec
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ BuildRequires: make
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-sphinx
BuildRequires: python3-nose
BuildRequires: python3-numpy
BuildRequires: python3-pytz

Provides: python3-%{srcname} = %{version}-%{release}
%{?python_provide:%python_provide python3-%{pkgname}}
Expand Down Expand Up @@ -64,7 +62,7 @@ popd
%changelog
* Fri Jun 19 2020 Johan Heikkila <[email protected]> - 0.8-2
- Removed python2
- Added BuildRequires python3-nose, python3-numpy
- Added BuildRequires python3-numpy

* Mon Sep 16 2019 Elliot Lee <[email protected]> - 0.8-1
- Initial version
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
pytz
numpy
nose
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
url='http://pysolar.org',
packages=['pysolar'],
package_data = {"pysolar": ["*.pyi"]}, # *.py is included in any case
requires = ['numpy', 'pytz'],
requires = ['numpy'],
)

0 comments on commit 2d4b89c

Please sign in to comment.