Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 07 07:53

    drvinceknight on master

    Add room location. Merge pull request #86 from PyD… (compare)

  • May 07 07:53
    drvinceknight closed #86
  • May 07 07:52
    drvinceknight opened #86
  • May 07 07:51

    drvinceknight on fix-location

    Add room location. (compare)

  • Apr 08 08:26
    drvinceknight closed #76
  • Apr 08 08:25

    drvinceknight on master

    add may meetup Merge pull request #85 from PyD… (compare)

  • Apr 08 08:25
    drvinceknight closed #85
  • Apr 04 08:02
    martinjc opened #85
  • Apr 04 08:01

    martinjc on add-may-event

    add may meetup (compare)

  • Jan 24 17:20

    drvinceknight on master

    Add Anvil workshop. Remove room, it is TBD. Merge pull request #84 from PyD… (compare)

  • Jan 24 17:20
    drvinceknight closed #84
  • Jan 24 17:20
    drvinceknight synchronize #84
  • Jan 24 17:19

    drvinceknight on add-anvil-workshop

    Remove room, it is TBD. (compare)

  • Jan 17 14:53
    drvinceknight opened #84
  • Jan 17 14:53

    drvinceknight on add-anvil-workshop

    Add Anvil workshop. (compare)

  • Dec 11 2018 09:26

    drvinceknight on master

    Fix january date Merge pull request #83 from PyD… (compare)

  • Dec 11 2018 09:26
    drvinceknight closed #83
  • Dec 11 2018 09:26
    drvinceknight opened #83
  • Dec 11 2018 09:26

    drvinceknight on fix-january-date

    Fix january date (compare)

  • Dec 07 2018 17:26

    drvinceknight on master

    Add January event. Copy and past school of Maths. … Merge pull request #82 from PyD… (compare)

Vince Knight
@drvinceknight
You can have some code in a script with various test/assertions that are called on run time.
I'd only recommend that for smaller projects though obviously.
It is possible to have code in a file main.py and then as long as your test_main.py is in the same dir it'll run fine.
If your your project gets bigger/more complex then you should indeed package it up (setup.py etc...)

I take it standard practise is to have one package per repo?

Yes.

But that's nothing stopping you (again depending on your needs) to have more than 1 per repo but I wouldn't recommend that.

Do people tend to put more than a single class inside a module?

Generally yes, but again it depends. Note that modules can have no classes at all as Python lends itself well to functional code when needed.

If it's helpful here are two libraries I maintain that might be helpful to look through:

There are loads of other (probably more insightful) packages around too that might be worth looking at.

Vince Knight
@drvinceknight
This repo is an example of one [generic] way of doing things: https://github.com/kennethreitz/setup.py
Dave Bould
@dbould
Thanks very much @drvinceknight, that's really helpful. I notice neither of those projects exactly match the standards set out by http://docs.python-guide.org/en/latest/ - the first project users a src directory (something I really like from other languages!) and your second project puts the tests in the package folder. I've noticed this with other projects too. Is it fair to say this site isn't taken too seriously and if a structure that fits the individual project differs, it doesn't matter too much?
Vince Knight
@drvinceknight
I would defintely recommend an src folder and if you look around you'll see a number of other projects doing that.
The tests insides axelrod was an oversight at the time and we would probably do that differently now but the tech debt is there now.

Is it fair to say this site isn't taken too seriously

Fundamentally (like in all languages), I'd suggest having a guideline is a good thing and a reason for why to do things. So that site is probably as good a set of guidelines as other.

Vince Knight
@drvinceknight

A Foolish Consistency is the Hobgoblin of Little Minds

That's from Python's most popular style guide: https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds

Dave Bould
@dbould
Great article, thanks!
Vince Knight
@drvinceknight

@martinjc I've put up an event PR for the lightning talk session: PyDiff/PyDiff.github.io#79

Once that's in, I'll put it up on meetup and send a meetup email to all (as well as asking the pydata folk to disseminate :)).

Don't forget, if you'd like to give a lightning talk let us know: PyDiff/PyDiff.github.io#76 :)
Martin Chorley
@martinjc
:+1:
Vince Knight
@drvinceknight
Dan Heaford
@danheaford_twitter
Thanks for that. I'll try and go to the next one. Looking forward to the next pydiff. If I'm feeling brave I might do a talk 😁
Vince Knight
@drvinceknight
Please do talk :)
You'll see as the session goes that it's super relaxed and a great opportunity :)
Dan Heaford
@danheaford_twitter
I'd better think of a subject then!
Vince Knight
@drvinceknight
I need to nip home and walk the (good) dog today before PyDiff but hoping to be able to make noodles around 1800 in case anyone else was planning on that :)
Martin Chorley
@martinjc
:+1:
I will try not to be there on time today to give you a fighting chance
have booked the livestreaming/recording for this evening
Vince Knight
@drvinceknight
👍
Vince Knight
@drvinceknight
@martinjc, I can confidently say I'll be around 10 mins late.
Dan Heaford
@danheaford_twitter
Is anyone here yet?
Dan Heaford
@danheaford_twitter
Were the talks recorded as well as streamed? If so can I get a link to them please?
Vince Knight
@drvinceknight
They have been recorded, @martinjc usually very kinldy finds time to download and throw them up on YouTube. I suspsect that'll happy, it might just take some time.
Dan Heaford
@danheaford_twitter
That’s good to know, thanks.
Adam Pohl
@Huaraz2
Is there a meetup this month?
Vince Knight
@drvinceknight
I don't believe so... @martinjc ?
Martin Chorley
@martinjc
... um, not heard back from my potential speaker, so I'm thinking we're not going to be having one this month
Adam Pohl
@Huaraz2
OK thanks @martinjc @drvinceknight
Vince Knight
@drvinceknight
No drama :) We can plan for the next one :)
Patrick Barry
@cromlyngames
saw this. Nice chance for Axelrod to segue into board games: (Camel Up) https://au.reddit.com/r/boardgames/comments/8igwjh/i_had_friends_build_bots_to_play_a_board_game/
Patrick Barry
@cromlyngames
why's it telling me 50 new messages?
oh, backlog from months back
Vince Knight
@drvinceknight
Pydata are having another meetup next week: https://www.meetup.com/PyData-Cardiff-Meetup/events/253161612/
Vince Knight
@drvinceknight
@martinjc I've spoken to PyData and they're having a meeting in October so I think we'll go for a November first meeting?
Austin Bingham
@abingham
Hi all. I've got a PyConUK ticket to give away. Anyone here interested or knows someone who might want one?
Vince Knight
@drvinceknight
<Cough> <Cough> Is this still on?
Just a brief headsup in case anyone's around, @martinjc and I are thinking of the next PyDiff (December time) to be some sort of get together (perhaps around some food) where we chat about the future of PyDiff. We'll be putting something out on meetup at some stage but if you have any thoughts let us know.
Martin Chorley
@martinjc
:+1:
Vince Knight
@drvinceknight
Next PyDiff meetup, 4th of December. Dinner to chat about the future of PyDiff: https://www.meetup.com/PyDiff/events/256350230/