Skip to content

Commit 2d4b89c

Browse files
mborsettiroot
authored and
root
committed
Final cleanup to remove unneeded dependencies
1 parent b539efb commit 2d4b89c

File tree

6 files changed

+5
-9
lines changed

6 files changed

+5
-9
lines changed

.github/workflows/testpackage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
29-
pip install flake8 pytest
29+
pip install flake8 pytest nose
3030
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3131
- name: Lint with flake8
3232
run: |

CONTRIBUTORS.markdown

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Thanks to:
2727
* Robin Wilson
2828
* Pietro Zambelli
2929
* Holger Zebner
30+
* Mike Borsetti
3031

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

pysolar/solar.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,12 @@
2626
from . import solartime as stime
2727
from . import radiation
2828
from .tzinfo_check import check_aware_dt
29-
import pytz
3029

3130

3231
def solar_test():
3332
latitude_deg = 42.364908
3433
longitude_deg = -71.112828
35-
d = datetime.datetime.now(tz=pytz.UTC)
34+
d = datetime.datetime.now(tz=datetime.timezone.utc)
3635
thirty_minutes = datetime.timedelta(hours = 0.5)
3736
for _ in range(48):
3837
timestamp = d.ctime()

python3-pysolar.spec

+1-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ BuildRequires: make
2525
BuildRequires: python3-devel
2626
BuildRequires: python3-setuptools
2727
BuildRequires: python3-sphinx
28-
BuildRequires: python3-nose
2928
BuildRequires: python3-numpy
30-
BuildRequires: python3-pytz
3129

3230
Provides: python3-%{srcname} = %{version}-%{release}
3331
%{?python_provide:%python_provide python3-%{pkgname}}
@@ -64,7 +62,7 @@ popd
6462
%changelog
6563
* Fri Jun 19 2020 Johan Heikkila <[email protected]> - 0.8-2
6664
- Removed python2
67-
- Added BuildRequires python3-nose, python3-numpy
65+
- Added BuildRequires python3-numpy
6866

6967
* Mon Sep 16 2019 Elliot Lee <[email protected]> - 0.8-1
7068
- Initial version

requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
pytz
21
numpy
3-
nose

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
url='http://pysolar.org',
2626
packages=['pysolar'],
2727
package_data = {"pysolar": ["*.pyi"]}, # *.py is included in any case
28-
requires = ['numpy', 'pytz'],
28+
requires = ['numpy'],
2929
)

0 commit comments

Comments
 (0)