diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..6abba14 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,15 @@ +## Hey there πŸ‘‹ +First of all, thanks for opening this PR! The Python community appreciates ❀️🐍 + +## The Checklist (for communities) βœ… +We all love checklists, right? Please, make sure that the PR has everything we need: +- [ ] The community is a local community, and not a conference. This is not a map for events in a certain point in time! +- [ ] The community added has a `name`, `lat`, `lng` and `url` +- [ ] The URL is working. No 404 pleeeeeeeeeease! +- [ ] The tests are passing + +## The Checklist (for other things) βœ… +We still don't have a process here, so: +- [ ] The tests are passing πŸ€·β€β™€οΈ + +❀️ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e1da6ae --- /dev/null +++ b/.gitignore @@ -0,0 +1,76 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# next.js build output +.next + +# nuxt.js build output +.nuxt + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless + +# FuseBox cache +.fusebox/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ec85c59 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +language: node_js +node_js: + - 10 +cache: npm diff --git a/README.md b/README.md index 2019885..c0f2171 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # Python Community Map -A map full of lovely Python communities 🐍❀️ - -This is still hosted under my domain – https://deployeveryday.com/python-community-map/ – but I'll try to get a better one soon, or deploy at the [python.org](https://www.python.org/) site, _that would be cool!_ +A map full of lovely Python communities 🐍❀️ currently deployed at https://community.python.org.br/. *This is not a map for specific events or conferences, but rather for local communities.* +[![Build Status](https://travis-ci.org/jonatasbaldin/python-community-map.svg?branch=master)](https://travis-ci.org/jonatasbaldin/python-community-map) + ## How to add a new community to the map? ### 1. Fork this repo First of all, fork this repo :) You can find instructions [here](https://help.github.com/articles/fork-a-repo/) or [here](https://guides.github.com/activities/forking/). @@ -16,8 +16,11 @@ Add your community information to the `communities.yaml` file, with the followin lat: -21.176630 lng: -47.820840 url: https://www.meetup.com/grupy-rp/ + logo: https://github.com/jonatasbaldin/python-community-map/raw/master/logo.png ``` +*The `logo` field is optional.* + If you are adding a new country, add a comment header before the community: ```yaml ### @@ -27,6 +30,7 @@ If you are adding a new country, add a comment header before the community: lat: -21.176630 lng: -47.820840 url: https://www.meetup.com/grupy-rp/ + logo: https://github.com/jonatasbaldin/python-community-map/raw/master/logo.png ``` Please, add communities and countries (if necessary) in alphabetical order. @@ -36,5 +40,21 @@ To get the latitude and longitude information, you can use [this](https://www.la ### 3. Make a pull request At the end, create a pull request for this repository! You can find instructions [here](https://help.github.com/articles/creating-a-pull-request/). +## A note on scraping +> Personally, I want to avoid web scrapping to mass collect communities from other websites or repositories, because I'd like to see people adding the communities they _belong_ to. I think it creates a better sense of "putting yourself on the map" and also incentivise people to contribute to open source :) + +## Testing +To run the tests locally, you'll need NodeJS, probably version 8 or higher. I'm using v10. + +Install everything: +``` +$ npm install +``` + +Run the tests: +``` +$ npm test +``` + ## License [MIT](https://github.com/jonatasbaldin/python-community-map/blob/master/LICENSE). diff --git a/communities.yaml b/communities.yaml index 681bd55..fdf04aa 100644 --- a/communities.yaml +++ b/communities.yaml @@ -1,16 +1,168 @@ +### +### Argentina +### +- name: Python Argentina + lat: -34.6037 + lng: -58.3816 + url: http://www.python.org.ar/ + +- name: Python Norte + lat: -24.789376 + lng: -65.410401 + url: https://t.me/pythonnorte + logo: https://avatars2.githubusercontent.com/u/42162876?s=200&v=4 + +### +### Azerbaijan +### + +- name: AzePUG - Azerbaijan Python User Group + lat: 40.409264 + lng: 49.867092 + url: https://azepug.az/ + logo: https://avatars3.githubusercontent.com/u/30192921 + ### ### Brazil ### +- name: Apythonados - CM + lat: -5.635240 + lng: -35.420190 + url: https://t.me/joinchat/Kyzkh1cTBOmrKlfHUajsxA + +- name: PUG-PB + lat: -7.119564 + lng: -34.8833767 + url: https://pb.python.org.br + +- name: GruPy-RN + lat: -5.824935 + lng: -35.211567 + url: https://meetup.grupyrn.org + +- name: PUG-CE + lat: -3.7913486 + lng: -38.5892419 + url: http://pylestras.org/ + - name: GruPy-RP lat: -21.176630 lng: -47.820840 url: https://www.meetup.com/grupy-rp/ +- name: Grupy-SP + lat: -23.550520 + lng: -46.633308 + url: https://www.meetup.com/pt-BR/Grupy-SP/ + +- name: GruPy-ABC + lat: -23.684167 + lng: -46.506865 + url: http://grupyabc.org/ + +- name: py013 + lat: -23.956290 + lng: -46.326460 + url: https://www.meetup.com/pt-BR/BxPy013/ + +- name: PyNorte + lat: -3.131633 + lng: -59.982504 + url: https://pt-br.facebook.com/pynorte/ + +- name: PyTche + lat: -30.0346 + lng: -51.2177 + url: https://www.meetup.com/PyTche/ + - name: Python Floripa lat: -27.596910 lng: -48.549580 url: http://floripa.sc.python.org.br/ +- name: Python-MG + lat: -19.912998 + lng: -43.940933 + url: https://pythonmg.github.io/ + +- name: PUG-PE + lat: -8.063169 + lng: -34.871143 + url: http://www.pug.pe/ + +- name: GruPy-SSA + lat: -13.0108746 + lng: -38.4966752 + url: https://www.meetup.com/pt-BR/Salvador-Python-Meetup/ + +- name: Python Joinville + lat: -26.304760 + lng: -48.845870 + url: http://python.joinville.br/ + +- name: GruPy-DF + lat: -15.7744228 + lng: -48.0772825 + url: http://df.python.org.br/ + logo: https://avatars3.githubusercontent.com/u/7825502?s=200&u=f2970ca8e5335b2338a72d4be314e0ef17bfd86f&v=4 + +- name: PythOnRio + lat: -22.9094444 + lng: -43.1763889 + url: http://pythonrio.python.org.br + +- name: PyLadies Fortaleza + lat: -3.732714 + lng: -38.526997 + url: https://www.facebook.com/PyLadiesFortaleza/ + +- name: Pydata BrasΓ­lia + lat: -15.834138 + lng: -47.919573 + url: https://www.meetup.com/PyData-Brasilia/ + +- name: Pydata Belo Horizonte + lat: -19.924851 + lng: -43.937731 + url: https://www.meetup.com/PyData-Belo-Horizonte/ + +- name: Grupy Blumenau + lat: -26.918940 + lng: -49.066059 + url: https://pythonbnu.github.io/ + +### +### Canada +### +- name: Python Toronto + lat: 43.653225 + lng: -79.383186 + url: https://www.meetup.com/pt-BR/Python-Toronto/ + +### +### Cameroon +### +- name: Python Ndere + lat: 7.416529 + lng: 13.550368 + url: https://t.me/joinchat/F1uYABJ_w3FFg4_vbB0jBA + +### +### Central America +### +- name: Python Nicaragua + lat: 12.0978181 + lng: -86.328501 + url: https://www.meetup.com/es-ES/Python-Nicaragua/ + +### +### Ecuador +### +- name: Python Ecuador + lat: -1.831239 + lng: -78.183403 + url: https://pythonecuador.org/ + ### ### Germany ### @@ -19,6 +171,71 @@ lng: 7.848796 url: https://www.meetup.com/Python-User-Group-Freiburg/ +### +### Greece +### +- name: Python User Group Greece + lat: 37.983103 + lng: 23.724767 + url: http://python.org.gr/ + +### +### India +### +- name: PyDelhi + lat: 28.7041 + lng: 77.1025 + url: https://www.meetup.com/pydelhi/ + logo: https://avatars1.githubusercontent.com/u/7951742?s=200&v=4 + +- name: ChennaiPy + lat: 13.0827 + lng: 80.2707 + url: https://www.meetup.com/chennaipy/ + logo: https://pbs.twimg.com/profile_images/826103316643975169/Sa_ZKNtb_400x400.jpg + +### +### Mauritius +### +- name: Python Mauritius User Group (PYMUG) + lat: -20.294079 + lng: 57.490768 + url: http://www.pymug.com + logo: https://avatars0.githubusercontent.com/u/42448972?s=400&u=9ad976693b7577c252c71085f8591bbefeca7aec&v=4 + +### +### Nigeria +### +- name: Python Nigeria + lat: 9.0820 + lng: 8.6753 + url: http://pythonnigeria.org/ + +### +### Peru +### + +- name: Python Lima + lat: -12.046373 + lng: -77.042755 + url: https://www.meetup.com/pythonperu/ + +### +### Spain +### + +- name: Python Canarias + lat: 28.291565 + lng: -16.629129 + url: https://pythoncanarias.es/ + logo: https://github.com/pythoncanarias/docs/raw/master/logos/python-canarias/bitmaps/logo-python-canarias-color-solo-128x128.png + +- name: Python Vigo + lat: 42.237478 + lng: -8.717551 + url: https://www.python-vigo.es/ + logo: https://raw.githubusercontent.com/python-vigo/python-vigo.github.io/master/pythonvigologo.png + ### ### South Africa ### @@ -26,3 +243,134 @@ lat: -33.924870 lng: 18.424055 url: https://ctpug.org.za/ + +- name: Gauteng Python User Group (GPUG) + lat: -26.204103 + lng: 28.047304 + url: https://www.meetup.com/Gauteng-Python-Users-Group/ + +- name: PyData Johannesburg + lat: -26.233215 + lng: 28.172847 + url: https://www.meetup.com/PyData-Johannesburg/ + +### +### United States +### +- name: The Austin Python Meetup + lat: 30.2688755 + lng: -97.7405641 + url: https://www.meetup.com/austinpython/ + +- name: Boston Python + lat: 42.361482 + lng: -71.081226 + url: https://www.meetup.com/bostonpython/ + +- name: Boulder Python + lat: 40.0293704 + lng: -105.2749968 + url: http://www.boulderpython.org/ + +- name: ChiPy + lat: 41.8781 + lng: -87.6298 + url: http://www.chipy.org/ + +- name: DerbyPy + lat: 38.2527 + lng: -85.7585 + url: https://www.meetup.com/derbypy/ + +- name: DFW Pythoneers + lat: 33.0782823 + lng: -96.8082226 + url: https://www.meetup.com/dfwpython/ + +- name: fresno.py + lat: 36.762740 + lng: -119.798830 + url: https://www.meetup.com/fresnopython/ + +- name: LexPy + lat: 38.038749 + lng: -84.504251 + url: https://www.meetup.com/lex_py/ + +- name: MEMpy + lat: 35.149532 + lng: -90.048981 + url: http://www.mempy.org/ + +- name: New Hampshire Python Group + lat: 42.987354 + lng: -71.463033 + url: https://www.meetup.com/New-Hampshire-Python-Group/ + +- name: Orlando Python User Group + lat: 28.541270 + lng: -81.380882 + url: http://pyorl.org + +- name: Puget Sound Programming Python (PuPPy) + lat: 47.5989758 + lng: -122.3337873 + url: https://www.meetup.com/PSPPython/ + +- name: PyAtl + lat: 33.748997 + lng: -84.387985 + url: https://www.meetup.com/python-atlanta/ + +- name: PyHawaii Python User Group + lat: 21.295134 + lng: -157.85178 + url: https://www.meetup.com/PyHawaii-Python-Users-Group/ + +- name: Python for Everyone + lat: 33.027852 + lng: -96.7115229 + url: https://www.meetup.com/python4e/ + +- name: Salt Lake City Python + lat: 40.7658975 + lng: -111.8487193 + url: https://www.meetup.com/SLCPython/ + +- name: San Diego Python User Group + lat: 32.824458 + lng: -117.6695076 + url: http://www.pythonsd.org/ + +### +### Cuba +### +- name: Python Cuba + lat: 20.888466 + lng: -76.204596 + url: https://t.me/pythoncuba/ + +### +### Benin +### +- name: Python Benin + lat: 6.379448 + lng: 2.451324 + url: https://pythonbenin.com/ + +### +### Venezuela +### +- name: Fundacion Python de Venezuela + lat: 8.422952 + lng: -66.983880 + url: https://pyve.github.io/ + +### +### Portugal +### +- name: Python Porto + lat: 41.1579 + lng: -8.6291 + url: https://pythonporto.org/ + logo: https://pythonporto.org/img/pyporto-logo.png diff --git a/index.html b/index.html index 71abec1..a22f800 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,30 @@ + + + + + + + + + + + + + + + + + + + + + + The Python Community Map + @@ -11,7 +34,7 @@