Skip to content

Commit

Permalink
chore: refactor setup.py to include a read function for file handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucs1590 committed Dec 14, 2024
1 parent aca8ea2 commit a56a8b4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
import os
import re
from pathlib import Path
from setuptools import setup, find_packages


def read(file_name):
with open(
os.path.join(
Path(os.path.dirname(__file__)),
file_name)
) as _file:
return _file.read()


setup(
name="strava-to-trainingpeaks",
version=re.findall(
Expand Down

1 comment on commit a56a8b4

@Lucs1590
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix #23 issue!

Please sign in to comment.