Skip to content

Commit 4d784b6

Browse files
committed
New strure for pypi, minor modifications
1 parent dc8c6e3 commit 4d784b6

File tree

6 files changed

+143
-1
lines changed

6 files changed

+143
-1
lines changed

.gitignore

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.pyc
4+
*.py[cod]
5+
*$py.class
6+
7+
# Distribution / packaging
8+
.Python
9+
.installed.cfg
10+
*.egg-info/
11+
*.egg
12+
_build/
13+
build/
14+
develop-eggs/
15+
eggs/
16+
wheels/
17+
pip-wheel-metadata/
18+
share/python-wheels/
19+
tmp/
20+
temp/
21+
Temp/
22+
23+
# Project files
24+
.project
25+
.pydevproject
26+
.pydevproject*
27+
.pydevproject.*
28+
.pydevproject.bak*
29+
.settings
30+
.vscode
31+
.spyproject*
32+
*.dot
33+
34+
# Environments
35+
.env
36+
.venv
37+
env/
38+
venv/
39+
ENV/
40+
env.bak/
41+
venv.bak/
42+
43+
# Jupyter Notebook
44+
.ipynb_checkpoints
45+
46+
# IPython
47+
profile_default/
48+
ipython_config.p
49+
50+
# Backup and temporarily files
51+
*.*~
52+
*.bak
53+
*.bkp
54+
*.tmp
55+
*.current
56+
*.old
57+
*.orig
58+
*.*orig
59+
*OLD*
60+
*.tmp.*

AUTHORS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
The labfis Project:
2+
Hendrik Dumith Louzada
3+
hendriklouzada@gmail.com
4+
João Carlos Rodrigues Júnior
5+
jc.rodrigues1997@usp.br

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Ovenbird-j
3+
Copyright (c) 2019 labfis.py
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

labfis/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# -*- coding: utf-8 -*-
2+
3+
# Copyright © 2020 labfis.py
4+
# (see LICENSE for details)
5+
6+
__version__ = '0.1'
7+
8+
# Local imports
9+
from labfis.main import labfloat
10+
labfloat
File renamed without changes.

setup.py

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# -*- coding: utf-8 -*-
2+
3+
# Copyright © 2020 labfis.py
4+
# (see LICENSE for details)
5+
"""Setup module for labfis.py.
6+
7+
Since:
8+
Sep 19, 2019
9+
10+
Authors:
11+
- Hendrik Dumith Louzada <hendriklouzada@gmail.com>
12+
- João Carlos Rodrigues Júnior <jc.rodrigues1997@usp.br>
13+
"""
14+
import codecs
15+
import os
16+
import re
17+
from setuptools import setup, find_packages
18+
19+
def read(*parts):
20+
# intentionally *not* adding an encoding option to open, See:
21+
# https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690
22+
here = os.path.abspath(os.path.dirname(__file__))
23+
return codecs.open(os.path.join(here, *parts), 'r').read()
24+
25+
def find_version(*file_paths):
26+
"""Find version in a Python file, searching for the __version__."""
27+
version_file = read(*file_paths)
28+
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
29+
version_file, re.M)
30+
if version_match:
31+
return version_match.group(1)
32+
raise RuntimeError("Unable to find version string.")
33+
34+
version = find_version("labfis", "__init__.py")
35+
long_description = "Adds a new float class type with an float and uncertainty value"
36+
37+
APP_NAME = "labfis"
38+
APP_DESCRIPTION = "Adds a new float type with uncertainty"
39+
AUTHOR = "Hendrik Dumith Louzada, João Carlos Rodrigues Júnior"
40+
AUTHOR_EMAIL = "hendriklouzada@gmail.com, jc.rodrigues1997@usp.br"
41+
URL = "https://github.com/Ovenbird-j/labfis.py"
42+
THEME_NAME = "Fusion"
43+
COPYRIGHT = "Copyright (C) 2020, labfis"
44+
45+
46+
classifiers = [
47+
'Development Status :: 4 - Beta',
48+
'Framework :: labfis',
49+
'Intended Audience :: End Users/Desktop',
50+
'Intended Audience :: Developers',
51+
'Operating System :: Microsoft :: Windows',
52+
'Operating System :: POSIX',
53+
'Programming Language :: Python 2.7 :: Python 3 :: Python 3.8']
54+
55+
python_ver = '>=2.7'
56+
57+
setup(name=APP_NAME,
58+
version=version,
59+
description=APP_DESCRIPTION,
60+
author=AUTHOR,
61+
author_email=AUTHOR_EMAIL,
62+
url=URL,
63+
long_description=long_description,
64+
packages=find_packages(),
65+
classifiers=classifiers,
66+
python_requires=python_ver,
67+
)

0 commit comments

Comments
 (0)