Skip to content

Commit 55ffff6

Browse files
committed
Prepare to PyPI release of version 1.0.0
1 parent 3507542 commit 55ffff6

File tree

5 files changed

+55
-5
lines changed

5 files changed

+55
-5
lines changed

LICENSE renamed to LICENSE.txt

File renamed without changes.

README.md

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
dist
2-
========
1+
<h1><img src="https://raw.githubusercontent.com/duboviy/dist/master/logo.png" height=85 alt="logo" title="logo"> dist</h1>
32

4-
[![Build Status](https://travis-ci.org/duboviy/dist.svg?branch=master)](https://travis-ci.org/duboviy/pybenchmark) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/c2828cf960c8404e86b487c0b79656ab)](https://www.codacy.com/app/dubovoy/dist?utm_source=github.com&utm_medium=referral&utm_content=duboviy/dist&utm_campaign=badger) [![Code Health](https://landscape.io/github/duboviy/dist/master/landscape.svg?style=flat)](https://landscape.io/github/duboviy/dist/master) [![Open Source Love](https://badges.frapsoft.com/os/mit/mit.svg?v=102)](https://github.com/duboviy/dist/) [![PRs & Issues Welcome](https://img.shields.io/badge/PRs%20&%20Issues-welcome-brightgreen.svg)](https://github.com/duboviy/dist/pulls) [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/duboviy/dist/)
3+
by [Eugene Duboviy](https://duboviy.github.io/)
4+
5+
[![Build Status](https://travis-ci.org/duboviy/dist.svg?branch=master)](https://travis-ci.org/duboviy/dist) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/c2828cf960c8404e86b487c0b79656ab)](https://www.codacy.com/app/dubovoy/dist?utm_source=github.com&utm_medium=referral&utm_content=duboviy/dist&utm_campaign=badger) [![Code Health](https://landscape.io/github/duboviy/dist/master/landscape.svg?style=flat)](https://landscape.io/github/duboviy/dist/master) [![Open Source Love](https://badges.frapsoft.com/os/mit/mit.svg?v=102)](https://github.com/duboviy/dist/) [![PRs & Issues Welcome](https://img.shields.io/badge/PRs%20&%20Issues-welcome-brightgreen.svg)](https://github.com/duboviy/dist/pulls) [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/duboviy/dist/)
56

67
Python/C API extension module that computes distance between two coordinates on the world map.
78

@@ -59,11 +60,36 @@ Checked under following Python versions:
5960
* "3.6"
6061

6162

62-
6363
What does it use inside? What kind of formula implementation is used?
6464
---------------------------------------------------------------------
6565

6666
Module accounts the curvature of the Earth when calculating large distances on the world map. If the Earth were flat, calculating the distance between two points would be very simple as for a straight line. The Haversine formula is used in current implementation, it includes a constant that represents the radius of the Earth.
6767
The Haversine formula is not 100% accurate because the Earth is not a perfect sphere. However, the Haversine gives a good enough approximation for most applications that use geolocation.
6868

69+
70+
License
71+
---------------------------------------------------------------------
72+
73+
**MIT** licensed library. See [LICENSE.txt](LICENSE.txt) for details.
74+
75+
76+
Contributing
77+
---------------------------------------------------------------------
78+
79+
If you have suggestions for improving the dist, please [open an issue or
80+
pull request on GitHub](https://github.com/duboviy/dist/).
81+
82+
83+
Badges
84+
---------------------------------------------------------------------
85+
86+
[![forthebadge](http://forthebadge.com/images/badges/fuck-it-ship-it.svg)](https://github.com/duboviy/dist/)
87+
[![forthebadge](http://forthebadge.com/images/badges/built-with-love.svg)](https://github.com/duboviy/dist/) [![forthebadge](http://forthebadge.com/images/badges/built-by-hipsters.svg)](https://github.com/duboviy/dist/) [![forthebadge](http://forthebadge.com/images/badges/built-with-swag.svg)](https://github.com/duboviy/dist/)
88+
89+
[![forthebadge](http://forthebadge.com/images/badges/powered-by-electricity.svg)](https://github.com/duboviy/dist/) [![forthebadge](http://forthebadge.com/images/badges/powered-by-oxygen.svg)](https://github.com/duboviy/dist/) [![forthebadge](http://forthebadge.com/images/badges/powered-by-water.svg)](https://github.com/duboviy/dist/) [![forthebadge](http://forthebadge.com/images/badges/powered-by-responsibility.svg)](https://github.com/duboviy/dist/)
90+
91+
[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)](https://github.com/duboviy/dist/)
92+
93+
[![forthebadge](http://forthebadge.com/images/badges/makes-people-smile.svg)](https://github.com/duboviy/dist/)
94+
6995
_______________________________________

logo.png

5.01 KB
Loading

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[metadata]
2+
description-file = README.md

setup.py

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,29 @@
1212

1313
setup(
1414
name="dist",
15-
version="0.0.1",
15+
packages=['dist'],
16+
version="1.0.0",
1617
description="Compute distance between two coordinates on the map",
18+
author='Eugene Duboviy',
19+
author_email='[email protected]',
20+
url='https://github.com/duboviy/dist',
21+
download_url = 'https://github.com/duboviy/dist/tarball/1.0.0',
22+
keywords = ['distance', 'coordinates', 'map', 'performance'],
23+
classifiers=[
24+
"Programming Language :: Python",
25+
"Programming Language :: Python :: 3",
26+
"Intended Audience :: Developers",
27+
"License :: OSI Approved :: MIT License",
28+
"Operating System :: OS Independent",
29+
"Topic :: Software Development :: Libraries :: Python Modules",
30+
],
31+
long_description="""
32+
As more and more apps are using maps, the more demand for geolocation capabilities increase.
33+
Geolocation is about the reporting of your location to other users,
34+
as well as associating real-world locations (such as landmarks) to your location.
35+
This repo helps to accurately calculate the distance between two locations
36+
and presents a time efficient practical solution,
37+
that is almost 3 times faster than similar fast pure python implementation.
38+
""",
1739
ext_modules=[ext],
1840
)

0 commit comments

Comments
 (0)